﻿using Microsoft.Extensions.DependencyInjection;
using MvvMToolKitDemo.ViewModels;
using System.Windows;

namespace MvvMToolKitDemo.Views
{
    /// <summary>
    /// https://learn.microsoft.com/en-us/windows/communitytoolkit/mvvm/puttingthingstogether
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = App.Current.Services.GetService<UserViewModel>();
        }
    }
}
